package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.Withdrawal;

/**
 * 提现Mapper接口
 * 
 * @author xuying
 * @date 2024-09-13
 */
public interface WithdrawalMapper 
{
    /**
     * 查询提现
     * 
     * @param id 提现主键
     * @return 提现
     */
    public Withdrawal selectWithdrawalById(Integer id);

    /**
     * 查询提现列表
     * 
     * @param withdrawal 提现
     * @return 提现集合
     */
    public List<Withdrawal> selectWithdrawalList(Withdrawal withdrawal);

    /**
     * 新增提现
     * 
     * @param withdrawal 提现
     * @return 结果
     */
    public int insertWithdrawal(Withdrawal withdrawal);

    /**
     * 修改提现
     * 
     * @param withdrawal 提现
     * @return 结果
     */
    public int updateWithdrawal(Withdrawal withdrawal);

    /**
     * 删除提现
     * 
     * @param id 提现主键
     * @return 结果
     */
    public int deleteWithdrawalById(Integer id);

    /**
     * 批量删除提现
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWithdrawalByIds(Integer[] ids);

    //    累计提现金额
    public Withdrawal selectWithdrawalSum(Integer mId);

    // 查询商户姓名
    public Withdrawal selectName(Integer id);


    public List<Withdrawal> selectWithdrawalByMid(Integer mId);

    public List<Withdrawal> selectByMid(Integer mId);
}
